package com.momo.hotel.vo;


import com.momo.hotel.dao.pojo.TbUser;
import org.springframework.context.annotation.Scope;

@Scope("prototype")
public class VoUser extends TbUser {

    private Integer id;
    /**
     * 用户名称
     */
    private String username;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 性别
     */
    private Integer gender;

    /**
     * 头像SRC
     */
    private String photo;

    /**
     * 身份证号码
     */
    private String identity;

    /**
     * 银行卡号码
     */
    private String bankcard;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 银行卡密码
     */
    private String bankpassword;

    /**
     * 是否会员
     */
    private Integer member;

    /**
     * 积分
     */
    private String credits;

    /**
     * 角色
     */
    private Integer role;



    private String code;

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Integer getGender() {
        return gender;
    }

    @Override
    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取用户名称
     *
     * @return username - 用户名称
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置用户名称
     *
     * @param username 用户名称
     */
    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    /**
     * 获取用户密码
     *
     * @return password - 用户密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置用户密码
     *
     * @param password 用户密码
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * 获取头像SRC
     *
     * @return photo - 头像SRC
     */
    public String getPhoto() {
        return photo;
    }

    /**
     * 设置头像SRC
     *
     * @param photo 头像SRC
     */
    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    /**
     * 获取身份证号码
     *
     * @return identity - 身份证号码
     */
    public String getIdentity() {
        return identity;
    }

    /**
     * 设置身份证号码
     *
     * @param identity 身份证号码
     */
    public void setIdentity(String identity) {
        this.identity = identity;
    }

    /**
     * 获取银行卡号码
     *
     * @return bankcard - 银行卡号码
     */
    public String getBankcard() {
        return bankcard;
    }

    /**
     * 设置银行卡号码
     *
     * @param bankcard 银行卡号码
     */
    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }

    /**
     * 获取手机号
     *
     * @return phone - 手机号
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置手机号
     *
     * @param phone 手机号
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取邮箱
     *
     * @return email - 邮箱
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置邮箱
     *
     * @param email 邮箱
     */
    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    /**
     * 获取银行卡密码
     *
     * @return bankpassword - 银行卡密码
     */
    public String getBankpassword() {
        return bankpassword;
    }

    /**
     * 设置银行卡密码
     *
     * @param bankpassword 银行卡密码
     */
    public void setBankpassword(String bankpassword) {
        this.bankpassword = bankpassword;
    }

    /**
     * 获取是否会员
     *
     * @return member - 是否会员
     */
    public Integer getMember() {
        return member;
    }

    /**
     * 设置是否会员
     *
     * @param member 是否会员
     */
    public void setMember(Integer member) {
        this.member = member;
    }

    /**
     * 获取积分
     *
     * @return credits - 积分
     */
    public String getCredits() {
        return credits;
    }

    /**
     * 设置积分
     *
     * @param credits 积分
     */
    public void setCredits(String credits) {
        this.credits = credits;
    }

    /**
     * 获取角色
     *
     * @return role - 角色
     */
    public Integer getRole() {
        return role;
    }

    /**
     * 设置角色
     *
     * @param role 角色
     */
    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "VoUser{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", photo='" + photo + '\'' +
                ", identity='" + identity + '\'' +
                ", bankcard='" + bankcard + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", bankpassword='" + bankpassword + '\'' +
                ", member=" + member +
                ", credits='" + credits + '\'' +
                ", role=" + role +
                ", code='" + code + '\'' +
                '}';
    }
}